package day4;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * ClassName：CollectionsTest
 *
 * @Author：小鱼
 * @Create：2025-08-14 14:12
 */
public class CollectionsTest {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();

        list.add(1);
        list.add(2);
        list.add(3);
        list.add(1);
        System.out.println(list);

//        Collections.fill(list,null);
//        System.out.println(list);

        System.out.println(Collections.max(list));
        System.out.println(Collections.min(list));

        Collections.reverse(list);
        System.out.println(list);

        Collections.sort(list);
        System.out.println(list);

        Collections.shuffle(list);
        System.out.println(list);

        Collections.addAll(list, 7,8,9);
        Collections.addAll(list, 10,11);
        System.out.println(list);

    }
}
